<script setup lang="ts">
    import type {BlankInfo} from './type'











    const baseApi = '/wcs/blank-info'

    

    const {loadData, loading, model} = useDetail<BlankInfo>(baseApi)

    defineExpose({ init: loadData })
</script>

<template>
    <el-empty v-if="!Object.keys(model).length" v-loading="loading" />
    <el-descriptions v-else v-loading="loading" :column="2" border >
            <el-descriptions-item label="零件编号" label-class-name="item-label" label-align="right">
                    <span class="txt-short">
                        {{ model.partNumber }}
                    </span>
            </el-descriptions-item>
            <el-descriptions-item label="零件名称" label-class-name="item-label" label-align="right">
                    <span class="txt-short">
                        {{ model.partName }}
                    </span>
            </el-descriptions-item>
            <el-descriptions-item label="夹具名称" label-class-name="item-label" label-align="right">
                    <span class="txt-short">
                        {{ model.fixtureName }}
                    </span>
            </el-descriptions-item>
            <el-descriptions-item label="检测程序名" label-class-name="item-label" label-align="right">
                    <span class="txt-short">
                        {{ model.checkProgramName }}
                    </span>
            </el-descriptions-item>
            <el-descriptions-item label="创建人" label-class-name="item-label" label-align="right">
                    <span class="txt-short">
                        {{ model.createByLabel }}
                    </span>
            </el-descriptions-item>
            <el-descriptions-item label="创建时间" label-class-name="item-label" label-align="right">
                    <span class="txt-short">
                        {{ model.createTime }}
                    </span>
            </el-descriptions-item>
            <el-descriptions-item label="更新人" label-class-name="item-label" label-align="right">
                    <span class="txt-short">
                        {{ model.updateByLabel }}
                    </span>
            </el-descriptions-item>
            <el-descriptions-item label="更新时间" label-class-name="item-label" label-align="right">
                    <span class="txt-short">
                        {{ model.updateTime }}
                    </span>
            </el-descriptions-item>
    </el-descriptions>
</template>

<style scoped lang="scss">
    .el-descriptions {
        :deep(.el-descriptions__header) {
            margin: 0 10px 12px;
        }

            :deep(.item-label) {
                width: 120px;
            }
    }
</style>